package cn.agriculture.web.form;

//import javax.validation.constraints.Digits;

import lombok.Data;
import cn.agriculture.common.validator.constraints.NotEmpty;

@Data
public class DistributorForm {

	@NotEmpty(field="分销商登录ID",  message="{errors.required}")
	private String distributorId;
	@NotEmpty(field="密码",  message="{errors.required}")
	private String password;
	private String passwordNew;
	@NotEmpty(field="密码确认",  message="{errors.required}")
	private String passwordConfirm;
	@NotEmpty(field="真实姓名",  message="{errors.required}")
	private String distributorName;
	private String type;
	private String level;
	private String printName;
	private String provinceId;
	private String provinceName;
	private String cityId;
	private String cityName;
	private String address;
	private String contacts;
	private String fax;
	private String telephone;
	@NotEmpty(field="手机",  message="{errors.required}")
//	@Digits(fraction = 0, integer = 11,message="{errors.mobile}")
	private String mobile;
	private String email;
	private String wechat;
	private String qq;
	@NotEmpty(field="支付宝账号",  message="{errors.required}")
	private String alipay;
	private String note;
	private String updateTime;
	private String updateUser;
	private String priceIncrement;
	private String amount;
}
